package com.me.customerdemo.service;

import com.github.pagehelper.PageInfo;
import com.me.customerdemo.pojo.Customer;

import java.util.List;

public interface CustomerService {

    /**
     * 查询所有客户信息
     */
    List<Customer> selectAll();
    /**
     * 修改客户信息
     */
    boolean updateById(Customer customer);

    PageInfo<Customer> findByKeyword(int pageNum, int pageSize, String keyword);
    Customer findById(int id);
    boolean modify(Customer customer);
    boolean removeById(int id);

    /**
     * 删除客户信息
     */
    boolean deleteById(int id);

    /**
     * 添加客户信息
     */
    boolean apply(Customer customer);
}
